<template>
  <div id="app">
    <el-container>
      <el-header>SpingBoot + MyBatis + Vue + ElementUI 前后端分离开发</el-header>
      <el-container>
        <el-aside width="200px">
          <!--展示菜单-->
          <el-menu
                  default-active="2"
                  class="el-menu-vertical-demo"
                  background-color="#545c64"
                  >
            <div id="title">ZK后台开发平台</div>
          </el-menu>
          <el-menu
                  default-active="2"
                  class="el-menu-vertical-demo"
                  background-color="#545c64"
                  text-color="#fff"
                  router
                  active-text-color="#ffd04b">
            <el-submenu index="1">
              <template slot="title">
                <i class="el-icon-location"></i>
                <span>学生管理</span>
              </template>
                <el-menu-item index="/student/list">
                  <i class="el-icon-menu"></i>学生列表
                </el-menu-item>
            </el-submenu>
            <el-submenu index="2">
              <template slot="title">
                <i class="el-icon-setting"></i>
                <span>班级管理</span>
              </template>
              <el-menu-item index="/classes/list">
                <i class="el-icon-document"></i>班级列表
              </el-menu-item>
            </el-submenu>
          </el-menu>
        </el-aside>
        <el-main>
          <router-view/>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<style>
  *{
    padding:0;
    margin:0;
  }
  #title{
    font-size:22px;
    font-family: 楷体;
    color:lightgreen;
    margin-top: 20px;
    padding:5px;
  }
  .el-menu-item{
    margin-left: 10px;
  }
  .el-menu{
    border-right:0!important;
  }
  .el-header, .el-footer {
    background-color: #B3C0D1;
    color: #333;
    text-align: right;
    line-height: 60px;
  }

  .el-aside {
    background-color: #D3DCE6;
    color: #333;
    text-align: center;
    height: 1000px;
  }

  .el-main {
    background-color: #E9EEF3;
    color: #333;
    text-align: center;

  }

  body > .el-container {
    margin-bottom: 40px;
  }

  .el-container:nth-child(5) .el-aside,
  .el-container:nth-child(6) .el-aside {
    line-height: 260px;
  }

  .el-container:nth-child(7) .el-aside {
    line-height: 320px;
  }
</style>
